<template>
  <div>
    <h2>登录成功页面</h2>
    用户名：{{userName}}
    密码：{{userPwd}}
  </div>
</template>

<script setup lang="ts">
    import {reactive,toRefs,onMounted} from 'vue'
import {useRouter,useRoute} from 'vue-router'
//接受参数
const route=useRoute()
//跳转页面并且传参
const router = useRouter()
let data=reactive({
    userName:route.query.userName,
    userPwd:route.query.userPwd,
})
let {userName,userPwd}=toRefs(data)
</script>

<style scoped>

</style>